import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomePage from "@/pages/HomePage.vue";
import UserLoginPage from "@/pages/user/UserLoginPage.vue";
import UserRegisterPage from "@/pages/user/UserRegisterPage.vue";
import UserManagerPage from '@/pages/admin/UserManagerPage.vue';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: HomePage
  },
  {
    path: '/user/login',
    name: 'userLogin',
    component: UserLoginPage
  },
  {
    path: '/user/register',
    name: 'userRegister',
    component: UserRegisterPage
  },
  {
    path: '/user/manager',
    name: 'userManager',
    component: UserManagerPage
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
